package cn.com.w.bootdemo;

import javafx.application.Application;
import javafx.stage.Stage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * javafx去掉main函数，启动。
 */
@SpringBootApplication
public class JavafxMainApplication extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        mains(new String[0]);
        System.out.println(">>>>>>>>>>>>>>javafx.application.Application---start");
    }


    // main -> mains
    public static void mains(String[] args) throws Exception {
        SpringApplication.run(JavafxMainApplication.class, args);
        System.out.println(">>>>>>>>>>>>>>main -> mains");
    }

}
